import request from '@/utils/request'

// 查询乡村振兴轮播图列表
export function listShow(query) {
  return request({
    url: '/revita/show/list',
    method: 'get',
    params: query
  })
}

// 查询乡村振兴轮播图详细
export function getShow(id) {
  return request({
    url: '/revita/show/' + id,
    method: 'get'
  })
}

// 新增乡村振兴轮播图
export function addShow(data) {
  return request({
    url: '/revita/show',
    method: 'post',
    data: data
  })
}

// 修改乡村振兴轮播图
export function updateShow(data) {
  return request({
    url: '/revita/show',
    method: 'put',
    data: data
  })
}

// 删除乡村振兴轮播图
export function delShow(id) {
  return request({
    url: '/revita/show/' + id,
    method: 'delete'
  })
}
// 消息状态修改
export function changeNoticeStatus(id, status) {
  const data = {
    id,
    status
  }
  return request({
    url: '/revita/show/changeStatus',
    method: 'put',
    data: data
  })
}
